package com.ruoyi.activiti.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.activiti.mapper.SpviewMapper;
import com.ruoyi.activiti.domain.Spview;
import com.ruoyi.activiti.service.ISpviewService;


@Service
public class SpviewServiceImpl implements ISpviewService
{
    @Autowired
    private SpviewMapper spviewMapper;


    @Override
    public Spview selectSpviewById(Long id)
    {
        return spviewMapper.selectSpviewById(id);
    }


    @Override
    public List<Spview> selectSpviewList(Spview spview)
    {
        return spviewMapper.selectSpviewList(spview);
    }


    @Override
    public int insertSpview(Spview spview)
    {
        return spviewMapper.insertSpview(spview);
    }


    @Override
    public int updateSpview(Spview spview)
    {
        return spviewMapper.updateSpview(spview);
    }


    @Override
    public int deleteSpviewByIds(Long[] ids)
    {
        return spviewMapper.deleteSpviewByIds(ids);
    }


    @Override
    public int deleteSpviewById(Long id)
    {
        return spviewMapper.deleteSpviewById(id);
    }

    @Override
    public String selectInstanceId(String bpmid){return spviewMapper.selectInstanceId(bpmid);};
}
